#include"searcher.hpp"
#include<iostream>

const std::string raw_path="./data/raw_html/raw.txt";

int main()
{
    ns_searcher::searcher sc;
    sc.initSearcher(raw_path);
    std::cout<<"初始化搜索引擎成功！"<<std::endl;
    while(1)
    {
        std::string query;
        std::string out;
        std::cout<<"请输入关键字："<<std::endl;
        std::cin>>query;

        sc.search(query,&out);
        std::cout<<out<<std::endl;
    }
    return 0;
}